﻿using System;
using System.Collections.Generic;

namespace DullBoard.Model
{
    public class Topic
    {

        public long Id { get; set; }
        public int PageCount { get; set; }
        public int ReplyCount { get; set; }
        public int ViewCount { get; set; }
        public bool Sticky { get; set; }
        public bool BlizzardPost { get; set; }
        public bool ContainsBlizzardPost { get; set; }
        public string Author { get; set; }
        public string Title { get; set; }
        public string Summary { get; set; }
        public string LastPostBy { get; set; }
        public DateTime DatePosted { get; set; }

        public override string ToString()
        {
            if (Sticky && !BlizzardPost) return "[Sticky] " + Title;
            if (Sticky && BlizzardPost) return "[Blue] [Sticky] " + Title;

            return Title;
        }
    }
}
